/*
 * @Author: WangLi
 * @Date: 2021-07-19 14:21:57
 * @LastEditors: WangLi
 * @LastEditTime: 2021-07-23 20:33:31
 * @Description:
 */
Component({
  externalClasses: ["custom-class"],
  options: {
    multipleSlots: true,
    addGlobalClass: true,
  },
  properties: {
    name: String,
    customStyle: String,
    color: {
      type: String,
      value: "",
    },
    size: {
      type: String,
      value: "",
    },
  },

  ready: function () {
    if (!this.properties.name) {
      console.error("请传入Icon组件的name属性");
    }
  },
  methods: {
    onClick() {
      this.triggerEvent("click");
    },
  },
});
